export class EnemyAttr {
    // 速度
    speed: number
    // 血量
    hp: number

    // 死亡动画name
    dieName: string;
    dieSound: string;

    // 计分
    score: number;


    constructor(speed: number, hp: number, dieName: string, dieSound: string, score: number) {
        this.speed = speed * 50
        this.hp = hp
        this.dieName = dieName
        this.dieSound = dieSound
        this.score = score
    }
}

export class EnemyConstant {

    static enemyAttrs: EnemyAttr[] = [
        new EnemyAttr(4, 1, 'enemy1_die', 'sound/enemy1_down', 100),
        new EnemyAttr(2, 2, 'enemy2_die', 'sound/enemy2_down', 200),
        new EnemyAttr(1, 4, 'enemy3_die', 'sound/enemy3_down', 400)
    ]

    /**
     * 每秒最多生成敌人数量
     */
    static readonly maxPer = 4
}